﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LightAddin
{
    internal class CWin32WindowWrapper : IWin32Window
    {
        // _windowHandle 字段
        private IntPtr _windowHandle;

        /// <summary>
        ///     CWin32WindowWrapper 构造器
        /// </summary>
        /// <param name="windowHandle">窗体句柄</param>
        public CWin32WindowWrapper(IntPtr windowHandle)
        {
            this._windowHandle = windowHandle;
        }

        // 总结:
        //     获取由实现者表示的窗口的句柄.
        //
        // 返回:
        //     由实现者表示的窗口的句柄.
        public IntPtr Handle
        {
            get
            {
                return this._windowHandle;
            }
        }
    }
}
